var t = require;
var e = module;
var o = exports;
var a,
    i =
        (this && this.__extends) ||
        ((a = function (t, e) {
            return (a =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (t, e) {
                        t.__proto__ = e;
                    }) ||
                function (t, e) {
                    for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                })(t, e);
        }),
        function (t, e) {
            a(t, e);
            function o() {
                this.constructor = t;
            }
            t.prototype = null === e ? Object.create(e) : ((o.prototype = e.prototype), new o());
        }),
    n =
        (this && this.__decorate) ||
        function (t, e, o, a) {
            var i,
                n = arguments.length,
                r = n < 3 ? e : null === a ? (a = Object.getOwnPropertyDescriptor(e, o)) : a;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, a);
            else
                for (var s = t.length - 1; s >= 0; s--)
                    (i = t[s]) && (r = (n < 3 ? i(r) : n > 3 ? i(e, o, r) : i(e, o)) || r);
            return n > 3 && r && Object.defineProperty(e, o, r), r;
        };
Object.defineProperty(o, "__esModule", {value: !0});
var r = cc._decorator,
    s = r.ccclass,
    c = r.property,
    p = (r.menu, r.executeInEditMode),
    l = (function (t) {
        i(e, t);
        function e() {
            var e = (null !== t && t.apply(this, arguments)) || this;
            e.makeCount = 0;
            e.starIndex = 1;
            e.baseNameData = "";
            e.selNode = null;
            return e;
        }
        Object.defineProperty(e.prototype, "updateView", {
            get: function () {
                return !1;
            },
            set: function () {
                this.updateViewData();
            },
            enumerable: !1,
            configurable: !0
        });
        e.prototype.updateViewData = function () {
            for (var t = this.starIndex; t < this.makeCount; t++) this.getNewNode(this.baseNameData + (t + 1));
        };
        e.prototype.onLoad = function () {};
        e.prototype.getNewNode = function (t) {
            if (this.selNode) {
                var e = cc.instantiate(this.selNode);
                e.parent = this.node;
                e.name = t;
                console.log("CreatNode ------aaa----------- " + t);
                return e;
            }
            return null;
        };
        e.prototype.init = function () {};
        n([c({displayName: "生成数量"})], e.prototype, "makeCount", void 0);
        n([c({displayName: "开始索引"})], e.prototype, "starIndex", void 0);
        n([c({displayName: "基础名字"})], e.prototype, "baseNameData", void 0);
        n([c(cc.Node)], e.prototype, "selNode", void 0);
        n([c({displayName: "新增"})], e.prototype, "updateView", null);
        return n([s, p], e);
    })(cc.Component);
o.default = l;
(function () {
    function t() {}
    t.saveFile = function () {};
    t.saveFileInAssets = function (t, e, o) {
        this.saveFile("assets/" + t, e, o);
    };
})();
